package com.classroommanagesystem.service;

import com.classroommanagesystem.domain.dto.LoginDTO;
import com.classroommanagesystem.domain.dto.RegisterDTO;
import com.classroommanagesystem.domain.dto.UpdatePasswordDTO;
import com.classroommanagesystem.domain.dto.UpdateUserDTO;
import com.classroommanagesystem.domain.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.cache.annotation.Cacheable;

import java.io.Serializable;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-10-24
 */
public interface UserService extends IService<User> {


    /**
     * 登录
     * @param dto
     */
    String login(LoginDTO dto);

    /**
     * 注册
     * @param dto
     */
    void register(RegisterDTO dto);

    /**
     * 登出
     */
    void logout();

    /**
     * 修改密码
     * @param dto
     */
    void updatePassword(UpdatePasswordDTO dto);

    /**
     * 修改信息
     * @param dto
     */
    void updateUserInfo(UpdateUserDTO dto);
}
